namespace openproj {
namespace helper {
namespace AttachmentsHelper {
//   void to_utf8_for_attachments(str) {
//    forced_str = str.dup
//    forced_str.force_encoding("UTF-8")
//    if ( forced_str.valid_encoding?) { return forced_str ;}

//    str.encode("UTF-8", invalid: :replace, undef: :replace, replace: "") // better replace: "?"
//  }

  //
  // List attachments outside the edit form
  // allowing immediate removal or addition of attachments
  //
  // Within ckeditor-form, this attachment list is added automatically
  // when a resource is added.
//   void list_attachments(resource) {
//    content_tag "attachments",
//                "",
//                "data-resource": resource.to_json,
//                "data-allow-uploading": false,
//                "data-destroy-immediately": true
//  }
}
}
}
